//: reusing/Orc.java
// The protected keyword.
package chapter7;

import static utility.Print.*;

import java.util.ArrayList;
import java.util.Arrays;

import simple.*;

/**
 * Exercise 19: (2) Create a class with a blank final reference to an object.
 * Perform the initialization of the blank final inside all constructors.
 * Demonstrate the guarantee that the final must be initialized before use, and
 * that it cannot be changed once initialized.
 * 
 * @author rDiaconescu
 * 
 */

class Strings {
	String s1;
	String s2;
	String s3;
	
	public Strings(String s1, String s2, String s3) {
	    super();
	    this.s1 = s1;
	    this.s2 = s2;
	    this.s3 = s3;
    }
	
	public void getFirstString(String s) {
		s = s1;
	}
	
}

public class Exercise19 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Strings strings = new Strings("first", "second", "third");
		
		String s = null; 
		
		strings.getFirstString(s);
				
		
	}
}